package com.heima.behavior.controller;

import com.heima.behavior.dto.UnLikesBehaviorDto;
import com.heima.behavior.service.IApUnlikesBehaviorService;
import com.heima.common.dto.ResponseResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * APP不喜欢行为表 前端控制器
 * </p>
 *
 * @author itheima
 * @since 2022-08-07
 */
@RestController
@RequestMapping("/api/v1/unlikes_behavior")
@Api(tags = "APP不喜欢行为表接口")
@CrossOrigin
public class ApUnlikesBehaviorController{

    @Autowired
    private IApUnlikesBehaviorService apUnlikesBehaviorService;

    /**
     * 保存不喜欢行为记录
     * @param dto
     * @return
     */
    @PostMapping
    public ResponseResult saveUnlikes(@RequestBody UnLikesBehaviorDto dto){
        return apUnlikesBehaviorService.saveUnlikes(dto);
    }

}
